/*
 * @Author: your name
 * @Date: 2021-09-01 11:01:34
 * @LastEditTime: 2021-09-01 16:17:02
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day08\4-toString.js
 */

var pattern = /abc/i;
//正则表达式定义
var pattern = new RegExp('abc', 'i');
console.log(pattern.toString()); //  /abc/i